package com.example.core

import android.content.Context

/**
 * Created by zhudongao
 * Desc
 * Date 2020/11/8
 */
class Core {

    companion object {
        @JvmStatic
        var appContext: Context? = null
            get() {
                if (field == null) {
                    throw RuntimeException("U should init Core first")
                }
                return field
            }

        fun init(context: Context) {
            appContext = context
        }
    }
}